package com.thymeleaf.demo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author sunny
 * @since 2020-12-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 分类id
     */
    @TableId(value = "category_id", type = IdType.AUTO)
    private Integer categoryId;

    /**
     * 分类名称
     */
    private String categoryName;

    /**
     * 父级的分类id
     */
    private Integer pid;

    /**
     * 排序（越大越靠前）
     */
    private Integer weigh;

    private Integer createtime;

    private Integer updatetime;

    /**
     * 逻辑删除
     */
    private Integer deleteFlag;


}
